home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / SPAWNO41.ARJ / _SPAWNP.C < prev    next >
C/C++ Source or Header  |  1991-10-29  |  876b  |  29 lines

  1. /********************************************************************/
  2. /*   SPAWNO v4.0   EMS/XMS/disk swapping replacement for spawn...() */
  3. /*   (c) Copyright 1991 Ralf Brown  All Rights Reserved         */
  4. /*                                    */
  5. /*   May be freely copied provided that this copyright notice is    */
  6. /*   not altered or removed.                        */
  7. /********************************************************************/
  8.  
  9. #include "_spawno.h"
  10.  
  11. int _Cdecl spawnvp(int type,const char *prog_name,const char **args)
  12. {
  13.    if (type != P_WAIT)
  14.       {
  15.       errno = EINVAL ;
  16.       return -1 ;
  17.       }
  18. #ifdef USE_ENVP
  19.    return spawnvpeo(___spawn_swap_dirs,prog_name,args,ENVP) ;
  20. #else
  21.    return spawnvpo(___spawn_swap_dirs,prog_name,args) ;
  22. #endif
  23. }
  24.  
  25. int _Cdecl spawnlp(int type,const char *prog_name, ...)
  26. {
  27.    return spawnvp(type,prog_name,(const char **)_va_ptr) ;
  28. }
  29.